<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title></title>
	<link rel="stylesheet" href="http://127.0.0.1/jumeiphp/Public/Bootstrap/Css/bootstrap.min.css" />
    <link rel="stylesheet" href="http://127.0.0.1/jumeiphp/Application/Admin/View/Public/Css/common.css" />

</head>
<body>

    <form action="<?php echo U('Cate/edit');?>" method='post'>
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <fieldset>
                    <legend>编辑商品分类</legend> 
                    <table class="table table-bordered table-hover">
                        <tr class="info">
                            <td>分类名称</td>
                            <td>
                                <input type="text" name='ca_name' value="<?php echo $oldData['ca_name'];?>" />
                            </td>
                        </tr>
                        <tr class="info">
                            <td>所属分类</td>
                            <td>
                                <select name="ca_pid">
                                    <?php foreach ($cateData as $k=>$v){?>

                                    <option value="<?php echo $v['ca_id'];?>"     <?php if($oldData['ca_id']==$v['ca_id']){ ?>selected<?php } ?>><?php echo $v['_name'];?></option>
                                    <?php }?>
                                </select>
                            </td>
                        </tr>
                        <tr class="info">
                            <td>分类排序</td>
                            <td>
                                <input type="text" name='ca_paixu' value="<?php echo $oldData['ca_paixu'];?>" />
                            </td>
                        </tr>
                        <tr class="info">
                            <td>修改类型</td>
                            <td>
                                <select name="type_t_id">
                                <option value="0">请选择</option>
                                <?php foreach ($type as $k=>$v){?>
                                    <option value="<?php echo $v['t_id'];?>"><?php echo $v['t_name'];?></option>
                                <?php }?>
                                    
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <input type="hidden" value="<?php echo $oldData['ca_id'];?>" name="ca_id"/>
                                <input type="submit" value="修改分类" class="btn btn-warning" />
                            </td>
                        </tr>
                    </table>
                    </fieldset>
                </div>
            </div>
        </div>
    </form>

</body>
</html>